package cn.itsource;

import cn.itsource.ymcc.util.BitStatesUtils;

public class test {
    public static void main(String[] args) {
        //位状态 ： 注册成功  1
        Long bitState = BitStatesUtils.addState(0L, BitStatesUtils.OP_REGISTED);
        System.out.println(Integer.toBinaryString(bitState.intValue()));
        //激活
        bitState = BitStatesUtils.addState(bitState, BitStatesUtils.OP_ACTIVED);
        System.out.println(Integer.toBinaryString(bitState.intValue()));
        //手机认证
        bitState = BitStatesUtils.addState(bitState, BitStatesUtils.OP_AUTHED_PHONE);
        System.out.println(bitState);
        System.out.println(Integer.toBinaryString(bitState.intValue()));
        //邮箱认证
        bitState = BitStatesUtils.addState(bitState, BitStatesUtils.OP_AUTHED_EMAIL);
        System.out.println(Integer.toBinaryString(bitState.intValue()));

    }
}
